﻿using Abp;
using Abp.Dependency;
using Abp.Notifications;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace FwProject
{
    public class MyNotification: ITransientDependency
    {
        private readonly INotificationSubscriptionManager _notificationSubscriptionManager;

        public MyNotification(INotificationSubscriptionManager notificationSubscriptionManager)
        {
            _notificationSubscriptionManager = notificationSubscriptionManager;
        }

        public async Task Subscribe_ConfirmOrder(int? tenantId, long userId)
        {
            await _notificationSubscriptionManager.SubscribeAsync(new UserIdentifier(tenantId, userId) , "ConfirmOrder");
        }

    }
}
